<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>人员派遣交底</title>
	
	<link rel="stylesheet" type="text/css" href="../../themes/general.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../../themes/gray/easyui.css">

	<script type="text/javascript" src="../../scripts/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="../../scripts/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../../scripts/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="../../scripts/src/jquery.parser.js"></script>
	<script type="text/javascript" src="../../scripts/general.js"></script>
	<script type="text/javascript" src="../../scripts/sessionExpriation.js"></script>

	<style type="text/css">
		.peopleChange:hover{background-color: #999;}
	</style>
	<script type="text/javascript">
	//首先判断是否为第一次填写，第一次填写其余信息为空，若不为第一次填写，则将其余信息补全
	var that;
	$(function() {
		var projectId = $.getUrlParam('projectId');
		//$('#projectId').val(projectId);
		$.ajax({//获取项目名称
			url : '../../project/getProjectName.ajax',
			type : 'post',
			dataType : 'text',
			cache: false,
			data : {
				projectId : projectId,
			},
			error: function(XMLHttpRequest, textStatus, errorThrown) {	                    
	        },
			success : function(data) {	
				$('#projectName').text(decodeURI(data));
			}
		}); 
		
		$('#dispatch_people_form').form({
			url : '../../dispatch/dispatchGroupLeaderAndMember.ajax?projectId='+projectId,
			onSubmit : function() {				
				recordProjectMember();				
				//recordFileName();
				if(checkIfRepeat()){
					alert("人员有重复");
					return false;
				}
				if ($(this).form('validate')) {
					return true;//验证是否为空
				} else {
					return false;
				}
			},
			success : function(data) {
				var obj = $.parseJSON(data);//将json字符串转换为object对象
				if (obj.success) {
					$.messager.alert('提示', obj.message, 'info', function(){
						location.reload();//强迫浏览器刷新当前页面
					});
				} else {
					$.messager.alert('提示', obj.message, 'info');
				}
			}
		});
		
		$('#file_sendcard_form').form({
			url : '../../dispatch/submitFileAndSendcard.ajax?projectId='+projectId,
			onSubmit : function() {				
				recordFileName();
				if ($(this).form('validate')) {
					return true;//验证是否为空
				} else {
					return false;
				}
			},
			success : function(data) {
				var obj = $.parseJSON(data);//将json字符串转换为object对象
				if (obj.success) {
					$.messager.alert('提示', obj.message, 'info', function(){
						location.reload();//强迫浏览器刷新当前页面
					});
				} else {
					$.messager.alert('提示', obj.message, 'info');
				}
			}
		});

		$.ajax({//需要数据库的人员信息
			url : '../../dispatch/selectByStationStatus.ajax',
			type : 'post',
			dataType : 'JSON',
			cache: false,
			error: function(XMLHttpRequest, textStatus, errorThrown) {
	                    alert(XMLHttpRequest.status);
	        },
			success : function(peopleData) {
				addpeople(peopleData);
			}
		});
		
        var getPeopleUrl = '../../dispatch/getGroupLeaderAndMemberByProjectId.ajax';
		
		$.ajax({
			url : getPeopleUrl,
			type : 'post',
			dataType : 'JSON',
			cache: false,
			data : {
				projectId : projectId 
			},
			error: function(XMLHttpRequest, textStatus, errorThrown) {
	                    alert(XMLHttpRequest.status);
	        },
			success : function(data) {
				init_viewPeople(data);
			}
		});
		
		
		$.ajax({//文件信息,从后台获取数据
			url : '../../dispatch/getDispatchFileInfo.ajax',
			type : 'post',
			dataType : 'JSON',
			cache: false,
			data : {
				projectId : projectId 
			},
			error: function(XMLHttpRequest, textStatus, errorThrown) {
	                   
	        },
			success : function(data) {
					init_file(data);
			}
		});
		$.ajax({//派遣单信息
			url : '../../dispatch/getSendCardInfo.ajax',
			type : 'post',
			dataType : 'JSON',
			cache: false,
			data : {
				projectId : projectId 
			},
			error: function(XMLHttpRequest, textStatus, errorThrown) {
	                   
	        },
			success : function(data) {
				init_dispatch_data(data);
			}
		});

		
		$('#btn_dispatch_people_submit').bind('click', function() {
			$("#dispatch_people_form").submit();
		});
		
		
		$('#btn_submit').bind('click', function() {
			$("#file_sendcard_form").submit();
		});
		
		window.projectMemberIndex = 1;

		function init_viewPeople(data){//这里是人员信息从后台获取写入前端
			
			if(data.groupLeader != null){
				$('#projectGroupLeader').val(data.groupLeader.ppUsername);
				$('#projectGroupLeaderId').val(data.groupLeader.ppPeopleid);
			}

			var list = data.member;//组员的list
			if (list.length != 0) {
				projectMemberIndex = list.length+1;//要新增的话要从这个开始新增

				for (var i = 1; i <= list.length; i++) {
					//新增一行
					var tempProjectMemberId = "delProjectMember" + i;
					$('#projectMemberTab').append('<tr id=\"projectMemberTr'+i+'\"></tr>');
			        $str='';
				    $str+='<td><input type="text"   readonly="true" id="projectMember'+i+'" value="'+list[i-1].ppUsername+'"	name="ppUsername"	class="easyui-validatebox input_140" onclick="func(\'projectMember'+i+'\')"  /><input type="hidden" name="ppPeopleid" id="projectMemberId'+i+'" value="'+list[i-1].ppPeopleid+'" />	</td>';
				    $str+='<td align="left"><a  id="'+tempProjectMemberId+'" href="javascript:delTrWithName(\''+tempProjectMemberId+'\',\'projectMemberCount\', '+i+')" >删除</a></td>';			    
				    var shareholder = $('#projectMemberTr'+i);
				    shareholder.append($str);
					$.parser.parse(shareholder);//解析
					var value = $("#projectMemberCount").val();
					if(value.length > 0){
						value += ",#"+i+"#";
					}else{
						value = "#"+i+"#"
					}
					$("#projectMemberCount").val(value);
				}
			}
		}
		
		$("#addProjectMember").click(function(){//点击增加
			var tempProjectMemberId = "delProjectMember" + projectMemberIndex;
			$('#projectMemberTab').append('<tr id=\"projectMemberTr'+projectMemberIndex+'\"></tr>');
	        $str='';
		    $str+='<td><input type="text"  readonly="true"  id="projectMember'+projectMemberIndex+'"	name="ppUsername"	class="easyui-validatebox input_140" onclick="func(\'projectMember'+projectMemberIndex+'\')"/><input type="hidden" name="ppPeopleid" id="projectMemberId'+projectMemberIndex+'" />	</td>';
		    $str+='<td align="left"><a  id="'+tempProjectMemberId+'" href="javascript:delTrWithName(\''+tempProjectMemberId+'\',\'projectMemberCount\', '+projectMemberIndex+')" >删除</a></td>';			    
		    var shareholder = $('#projectMemberTr'+projectMemberIndex);
		    shareholder.append($str);
			$.parser.parse(shareholder);//解析
			var value = $("#projectMemberCount").val();//获取值
			if(value.length > 0){
				value += ",#"+projectMemberIndex+"#";//存进来时加#
			}else{
				value = "#"+projectMemberIndex+"#"
			}
			$("#projectMemberCount").val(value);
		    projectMemberIndex++;//编号加1
		});

	//对话框的设置
	$( "#dialog" ).dialog({
		title: '人员派遣',
        closed:true,
        modal:true,  
     	autoOpen: true,
     	left:400,
    	top:200,
      
    });
    

    /* $("#tipProjectPeople1").click(function(){
    	that = $(this).prev().prev();
    	choose_people();
    });

    $("#tipProjectPeople2").click(function(){
    	that = $(this).prev().prev();
    	choose_people();
    }); */
     $("#addProjectGroupLeader").click(function(){
    	that = $(this).prev().prev();
    	choose_people();
    });
     /* $("#tipProjectPeople4").click(function(){
     	that = $(this).parent().parent().nextAll("tr:last").children().children();
    	choose_people();
    }); */

	
     function addpeople(peopleData){
			if(peopleData != null && peopleData.length > 0){
				for(var i = 0; i < peopleData.length; i++){
					$str='';
			        $str+='<tr class="peopleChange">';
			        $str+='<td align="center" width="50" class="id">' + peopleData[i].people.peoId  + '</td>';
					$str+='<td align="center" width="70" class="name">' + peopleData[i].people.peoName  + '</td>';
					$str+='<td align="center" width="100">' + peopleData[i].people.peoStationDesc  + '</td>';
					if(peopleData[i].project == null || peopleData[i].project.projectName == null)
						projectName = "";
					else
						projectName = peopleData[i].project.projectName;
				    $str+='<td align="center" width="150">' + projectName  + '</td>';
				    if(peopleData[i].people.peoContel == null)
				    	peopleData[i].people.peoContel = "";
					$str+='<td align="center" width="100">' + peopleData[i].people.peoContel  + '</td>';
					if(peopleData[i].people.peoEvectionDesc == null)
						peopleData[i].people.peoEvectionDesc = "";
					$str+='<td align="center" width="100">' + peopleData[i].people.peoEvectionDesc + '</td>';
				    $str+='</tr>';
				    $("#newPeople").append($str);
				}
			}
			$(".peopleChange").click(function(){
				var name = $(this).children('td.name').text();
				var id = $(this).children('td.id').text();
				$(that).val(name);
				$(that).next().val(id);
				$("#dialog").dialog('close');
			})
		}

});	


	function modify_people(){
		var projectId = $.getUrlParam('projectId');
		parent.addTabWithIcon("人员变更", "./project/modifyPeople.htm?projectId="+projectId, "icon-tip");
	}
	
	
	//从数据库选人
	function choose_people(){
		$("#dialog").dialog('open');
	}
	
	function func(tempTdId){
		var obj  = $("#" + tempTdId);
		that = $(obj);
		$("#dialog").dialog('open');
	}
	//人员信息汇总
	function recordProjectMember(){
		var projectMember_total 	= '';
		var projectMemberId_total 	= '';
		var projectMemberCount = $("#projectMemberCount").val();
		var counts = projectMemberCount.split(",");
		if(counts != ""){
			for(var i = 0; i < counts.length; i++){
				var count = counts[i].substring(1, counts[i].length-1);
				projectMember_total  += $("#projectMember"+count).val()==""?"#&":$("#projectMember"+count).val() + "&";
				projectMemberId_total  += $("#projectMemberId"+count).val()==""?"#&":$("#projectMemberId"+count).val() + "&";
			}
		}
		document.getElementById("projectMember_total").value 		= projectMember_total;
		document.getElementById("projectMemberId_total").value 		= projectMemberId_total;
		
	}
	function checkIfRepeat(){
		memberId_total = document.getElementById("projectMemberId_total").value;
		var counts = memberId_total.split("&");
		var max = 0;
		if(counts != ""){
			for(var i = 0; i < counts.length; i++){
				if(counts[i] > max)
					max = counts[i];
			}
			var array = new Array(max+1); 
			for(var i = 0; i < counts.length; i++){
				if(array[counts[i]] == 1){
					return true;
				}
				else
					array[counts[i]] = 1;
			}
		}
		return false;
		
	}

	//表单提交时验证 最后上传的那部分
	function recordFileName(){
		var fileNames = document.getElementsByName("fileName");//取得标签名为filename的标签对象
		//var fileNameIndex 	= '';
		var fileNameVal 	= '';
		for(var k = 0; k < fileNames.length; k++){			
			var tempFileNameObject 	= 	fileNames[k];
			var currentFileNameId 	= 	tempFileNameObject.id;
			var fileNameTot = document.getElementById(currentFileNameId).value
			if (fileNameTot.length != 0) {fileNameVal  += 	fileNameTot + "&";}		
		}
		//将所有的filename的值以&连接传入fileName_total
		document.getElementById("fileName_total").value = fileNameVal;
	}

	//文件从后台的填写
	function init_file(data){
		    //文件部分
			var list = data.tFileForm;
			$('.origin').each(function(index,element){
				if (list[index].fileFormFilename == null) {
		    		$(this).text("未上传");
		    	}
		    	else{
		    		$(this).text(list[index].fileFormFilename)
		    	}
			});
	}
	function delTrWithName(tempTdId, hiddenId, k){//删除行
		var obj  = $("#" + tempTdId);
		$(obj).parent().parent().remove();  
		var chargeDetailCount = $('#'+hiddenId);
		var value = chargeDetailCount.val();
		if(value.length == 3){
			value = value.replace("#"+k+"#","");
		}else{
			value = value.replace(",#"+k+"#","");
			value = value.replace("#"+k+"#,","");
		}
		$('#'+hiddenId).val(value);
	}
	//派遣单默认数据的填写
	function init_dispatch_data(data){
		if(data == null){
				$.messager.alert('Error', '该数据已经关闭', 'error');
		}
		$("#projectDispatchID").text();//派遣单编号???
		$("#projectName1").text(data.project.projectName);//项目名称
		$("#projectClass").text(data.project.proType);//项目类别
		$("#ownerCompany").text(data.project.proUnit);//业主单位				
		$("#ownerTel").text(data.project.proConntel);//联系电话
		$("#supervisorGoods").text(data.project.proGoods);//监造物资		
		$("#entrustNum").text(data.project.proGoodsnum);//委托数量
		$("#supervisorGist").text(data.project.proBasis);//监理依据
		$("#manufacture").text(data.project.proFactory);//生产厂家
		$("#telePhone").text(data.project.proFactoryconntel);//联系电话
		$("#qualityPlan").text();//质量计划???
		$("#projectChief1").text(data.chief.peoName); //项目总监
		$("#projectChiefTel").text(data.chief.peoContel); //联系方式
		$("#reportMode").text(data.project.proReportway);//回报方式
		$("#reportFrequency").text(data.project.proReportRate);//汇报频次
		$("#chief").text();//主管领导????
		$("#chiefTel").text();//主管领导联系电话????
		if(data.sendCard != null){
			$("#carryData").val(data.sendCard.tSendTechFolder);//携带技术资料
			$("#goOff").val(data.sendCard.tSendGoTime);//出发时间
			$("#jobContent").val();//工作内容
			$("#submissions").val();//结束后提交材料
			$("#remarks").val();//备注
			$("#plantChief").val(data.sendCard.tSendFactoryPrinciple);//工厂负责人
		}		
		
		if(data.groupLeader != null){
			$("#projectGroup").text(data.groupLeader.peoName);//组长
			$("#projectGroupTel").text(data.groupLeader.peoContel);//联系方式
		}
		
		$("#projectMember").text(data.members);//组员
	}

	</script>
</head>

<body>
<span>子项目名称：</span><span id="projectName"></span>	
<form id="dispatch_people_form" method="post">
	<!-- <input type="text" name="projectId"   		id="projectId" 	value="" /> -->
	<input type="hidden" name="projectMember_total"   id="projectMember_total" 	value="" />
	<input type="hidden" name="projectMemberId_total"   id="projectMemberId_total" 	value="" />
	<input type="hidden" id="projectMemberCount" value="" />	
	<table class="table_new" id="projectMemberTab">
		<tr>
			<td class="td_new_subtitle" colspan="2" ><strong>人员派遣交底——人员派遣信息</strong></td>
		</tr>
		<!-- <tr>
			<td class="td_new_value">项目总监&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
			<td class="td_new_value">
				<input class="easyui-validatebox input_140" type="text" data-options="validType:'length[3,50]'" id="projectChief" name="peoples[0].userName" />
				<input type="hidden" name="peoples[0].userId"  id="personId" 	value="" />
				<a href="javascript:void(0)"  class="easyui-linkbutton" icon="icon-menu-ADD_ROLE" id="tipProjectPeople1"></a>
			</td>
		</tr>
		<tr>
			<td class="td_new_name_1">项目经理&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
			<td class="td_new_value">
				<input class="easyui-validatebox input_140" type="text" data-options="validType:'length[3,50]'" id="projectManager" name="peoples[1].userName" />
				<input type="hidden" name="peoples[1].userId"  id="personId" 	value="" />
				<a href="javascript:void(0)"  class="easyui-linkbutton" icon="icon-menu-ADD_ROLE" id="tipProjectPeople2"></a>
			</td>
		</tr> -->
		<tr>
			<td class="td_new_name_1" width="40%">项目组长&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
			<td class="td_new_value">
				<input class="easyui-validatebox input_140" type="text" readonly="true"  data-options="validType:'length[1,50]'" id="projectGroupLeader" name="projectGroupLeader" />
				<input type="hidden" name="projectGroupLeaderId"  id="projectGroupLeaderId" 	value="" />
				<a href="javascript:void(0)" class="easyui-linkbutton" icon="icon-menu-ADD_ROLE" id="addProjectGroupLeader"></a>
			</td>
		</tr>
		<tr>
			<td class="td_new_name_1"  width="40%">项目组员&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
			<td class="td_new_value" >
				<a href="javascript:void(0)" class="easyui-linkbutton" icon="icon-add" id="addProjectMember"></a>
				<!-- <a href="javascript:void(0)"  class="easyui-linkbutton" icon="icon-menu-ADD_ROLE" id="tipProjectPeople4"></a> -->
			</td>
		</tr>
		<!-- <tr id="projectMemberTr1">
			<td class="td_new_name_1">
				<input class="easyui-validatebox input_140" type="text"  id="projectMember1" name="peoples[3].userName" />			
				<input type="hidden" name="peoples[3].userId"  id="personId" 	value="" />	
			</td>
			<td align="left" >
			<a id="delProjectMember1" 	href="javascript:delTrWithName('delProjectMember1','projectMemberCount', 1)">删除</a>
			</td>
		</tr> -->
	</table>
	
	<div align="center">
		<a id="btn_dispatch_people_submit" href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok">确认提交</a>
		<a id="btn_modify_people_submit" href="javascript:modify_people()" class="easyui-linkbutton" iconCls="icon-tip">人员变更</a>
	</div>
	
</form>	
	
	<br/>
<form id="file_sendcard_form" method="post" enctype="multipart/form-data">
    <!-- <input type="hidden" name="projectId"   		id="projectId" 	value="" /> -->
    <input type="hidden" name="fileNameTotal" 	id="fileName_total" value="" />
	<table class="table_new" id="fileInfoTab">
		<tr>
			<td class="td_new_subtitle" colspan="3" ><strong>人员派遣交底--文件上传</strong></td>
		</tr>
		<tr>
			<td align="center" width="80px"><strong>名称</strong></td>
			<td align="center" width="60px"><strong>上传</strong></td>
			<td align="center" width="150px"><strong>已上传文件名</strong></td>
		</tr>
		<tr>
			<td><input type="text" 	id="fileName1" 		name="fileName" 	value="技术交底会议纪要" 	size="50" readonly/></td>
			<td><input type="file" 	id="fileUpload1" 	name="fileUpload1"  /></td>
			<td align="center" ><span class="origin"></span></td>
		</tr>		
	</table>
	</br>
	<!--派遣单-->
	<table class="table_new">
		<tr>
			<td class="td_new_subtitle" colspan="6" ><strong>派遣单</strong></td>
		</tr>
		<tr>
			<td class="td_new_name">编号</td>
			<td class="td_new_value" colspan="5"><span id="projectDispatchID"></span></td>		
		</tr>
		<tr>
			<td class="td_new_name">项目名称</td>
			<td class="td_new_value" colspan="2"><span id="projectName1"></span></td>							
			<td class="td_new_name">项目类别</td>
			<td class="td_new_value" colspan="2"><span id="projectClass"></span></td>			
		</tr>
		<tr>
			<td class="td_new_name">业主单位</td>
			<td class="td_new_value" colspan="2"><span id="ownerCompany"></span></td>
			<td class="td_new_name">联系方式</td>
			<td class="td_new_value" colspan="2"><span id="ownerTel"></span></td>
		</tr>
		<tr>
			<td class="td_new_name">监造物资</td>
			<td class="td_new_value" colspan="2"><span id="supervisorGoods"></span></td>
			<td class="td_new_name">委托数量</td>
			<td class="td_new_value" colspan="2"><span id="entrustNum"></span></td>
		</tr>
		<tr>
			<td class="td_new_name">监理依据</td>
			<td class="td_new_value" colspan="5"><span id="supervisorGist"></span></td>
		</tr>
		<tr>
			<td class="td_new_name">生产厂家</td>
			<td class="td_new_value" colspan="2"><span id="manufacture"></span></td>
			<td class="td_new_name">厂家联系方式</td>
			<td class="td_new_value" colspan="2"><span id="telePhone"></span></td>
		</tr>
		<tr>
			<td class="td_new_name">质量计划</td>
			<td class="td_new_value" colspan="5"><span id="qualityPlan"></span></td>
		</tr>
		<tr>
			<td class="td_new_name">携带技术资料</td>
			<td class="td_new_value" colspan="5">
				<input class="easyui-validatebox input_360" type="text" data-options="required:true,validType:'length[2,200]'" id="carryData" name="tSendTechFolder" />
			</td>
		</tr>
		<tr>
			<td class="td_new_name" rowspan="3">监理人员</td>
			<td class="td_new_name">总监</td>
			<td class="td_new_value" ><span id="projectChief1"></span></td>
			<td class="td_new_name">联系方式</td>
			<td class="td_new_value" colspan="2"><span id="projectChiefTel"></span></td>
		</tr>
		<tr>
			<td class="td_new_name">组长（HSE）</td>
			<td class="td_new_value"><span id="projectGroup"></span></td>		
			<td class="td_new_name">联系方式</td>
			<td class="td_new_value" colspan="2"><span id="projectGroupTel"></span></td>
		</tr>
		<tr>
			<td class="td_new_name">组员</td>
			<td class="td_new_value" colspan="4"><span id="projectMember"></span></td>				
		</tr>
		<tr>
			<td class="td_new_name">出发时间</td>
			<td class="td_new_value" colspan="5">
				<input class="easyui-validatebox input_360" type="text" data-options="required:true,validType:'length[2,50]'" id="goOff" name="tSendGoTime" />
			</td>
		</tr>
		<tr>
			<td class="td_new_name">工作内容</td>
			<td class="td_new_value" colspan="5">
				<textarea name="" id="jobContent" style="height: 60px" cols="105" data-options="validType:'length[3,2000]'" class="easyui-validatebox">工厂质量体系审核、原材料检验、生产检验过程中产品外观质量、几何尺寸、水压试验、无损检验、力学性能试验、标识、包装和发运等工序的见证监督；</textarea>
			</td>
		</tr>
		<tr>
			<td class="td_new_name">汇报频次</td>
			<td class="td_new_value" colspan="2"><span id="reportFrequency"></span></td>		
			<td class="td_new_name">汇报方式</td>
			<td class="td_new_value" colspan="2"><span id="reportMode"></span></td>		
		</tr>
		<tr>
			<td class="td_new_name">主管领导</td>
			<td class="td_new_value" colspan="2"><span id="chief"></span></td>
			<td class="td_new_name">联系电话</td>
			<td class="td_new_value" colspan="2"><span id="chiefTel"></span></td>			
		</tr>
		<tr>
			<td class="td_new_name">工作结束后需提交材料</td>
			<td class="td_new_value" colspan="5">
				<textarea name="" id="submissions" style="height: 60px" cols="105" data-options="validType:'length[3,2000]'" class="easyui-validatebox">1、根据公司监造资料提交要求提交；
2、监造资料、监造报告应与设备监造计划任务书对应；
3、驻厂监造总结报告（一周内提交）。</textarea>
			</td>
		</tr>
		<tr>
			<td class="td_new_name">备注</td>
			<td class="td_new_value" colspan="5">
				<textarea name="" id="remarks" style="height: 70px" cols="105" data-options="validType:'length[3,2000]'" class="easyui-validatebox">1、汇报频次、汇报方式、汇报频次
2、汇报文件名称（日报）；
3、汇报文件名称（周报）
4、监造细则入厂3日内完成发项目经理邮箱，项目经理两日内审核完成发送尚汉青shq_working@163.com。</textarea>
			</td>
		</tr>
		<tr>
			<td class="td_new_name">编制人</td>
			<td class="td_new_value" ><span>尚汉青</span></td>
			<td class="td_new_name">审批人</td>
			<td class="td_new_value" ><span>刘锋</span></td>
			<td class="td_new_name">工厂负责人</td>
			<td class="td_new_value" >
				<input class="easyui-validatebox input_140" type="text" data-options="required:true" id="plantChief" name="tSendFactoryPrinciple"  />
			</td>
		</tr>
	</table>
	<table class="table_new">
		<tr>
			<td align="center" width="100%"><a id="btn_submit" href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok">确认提交</a></td>
		</tr>
	</table>
</form>


 <div id="dialog"  style="width:500px;height:280px;padding:10px 20px">
	<table class="table_view2" id="newPeople">
		<tr>
			<td align="center" width="50px">序号</td>
			<td align="center" width="70px">姓名</td>
			<td align="center" width="100px">岗位状态</td>
			<td align="center" width="150px">所在项目</td>
			<td align="center" width="100px">联系电话</td>
			<td align="center" width="100px">休假出差</td>
		</tr>
	</table>
</div>

</body>
</html>